/**
 * @Author: yy
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-08-13 15:07:10
 */
import axios from '@/api/fetch';
import * as types from './types';
import SERVER from '@/api/server';
//  查询战败车型信息
export const queryFailModels = params => axios.get(`${SERVER.CYXDMS_CLUE}/basedata/failModels`, { params });
//  战败车型跳转编辑页面
export const getFailModelsById = id => axios.get(`${SERVER.CYXDMS_CLUE}/basedata/failModels/${id}`, { id: Number(id) });
//  战败车型新增保存
export const addFailModel = params => axios.post(`${SERVER.CYXDMS_CLUE}/basedata/failModels`, params);
//  战败车型编辑保存
export const ModifyFailModels = ( params, id) => axios.put(`${SERVER.CYXDMS_CLUE}/basedata/failModels/${id}`, params );
